home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / text / edit / vim60rt.lha / Vim / vim60 / syntax / elmfilt.vim < prev    next >
Encoding:
Text File  |  2001-06-18  |  1.6 KB  |  52 lines

  1. " Vim syntax file
  2. " Language:    Elm Filter rules
  3. " Maintainer:    Dr. Charles E. Campbell, Jr. <Charles.E.Campbell.1@gsfc.nasa.gov>
  4. " Last Change:    June 12, 2001
  5.  
  6. " For version 5.x: Clear all syntax items
  7. " For version 6.x: Quit when a syntax file was already loaded
  8. if version < 600
  9.   syntax clear
  10. elseif exists("b:current_syntax")
  11.   finish
  12. endif
  13.  
  14. syn keyword    elmfiltAction    delete execute executec forward forwardc leave save savecopy
  15. syn match    elmfiltArg    "[^\\]%[&0-9]"lc=1    contained
  16. syn keyword    elmfiltCond    cc bcc lines always subject sender from to lines received
  17. syn region    elmfiltMatch    start="/" skip="\\/" end="/"
  18. syn match    elmfiltNumber    "\d\+"
  19. syn keyword    elmfiltOper    and not matches
  20. syn match    elmfiltOper    "\~"
  21. syn match    elmfiltOper    "<=\|>=\|!=\|<\|<\|=\|(\|)"
  22. syn keyword    elmfiltRule    if then
  23. syn region    elmfiltString    start='"' skip='"\(\\\\\)*\\"' end='"'    contains=elmfiltArg
  24. syn match    elmfiltComment    "^#.*$"
  25.  
  26. " Define the default highlighting.
  27. " For version 5.7 and earlier: only when not done already
  28. " For version 5.8 and later: only when an item doesn't have highlighting yet
  29. if version >= 508 || !exists("did_elmfilt_syntax_inits")
  30.   if version < 508
  31.     let did_elmfilt_syntax_inits = 1
  32.     command -nargs=+ HiLink hi link <args>
  33.   else
  34.     command -nargs=+ HiLink hi def link <args>
  35.   endif
  36.  
  37.   HiLink elmfiltAction    Statement
  38.   HiLink elmfiltArg    Special
  39.   HiLink elmfiltComment    Comment
  40.   HiLink elmfiltCond    Type
  41.   HiLink elmfiltMatch    Special
  42.   HiLink elmfiltNumber    Number
  43.   HiLink elmfiltOper    Operator
  44.   HiLink elmfiltRule    Statement
  45.   HiLink elmfiltString    String
  46.  
  47.   delcommand HiLink
  48. endif
  49.  
  50. let b:current_syntax = "elmfilt"
  51. " vim: ts=9
  52.